package cn.itcast.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: wangxg
 * @date: 2019-06-22 14:48
 **/

@Slf4j
@RestController
public class HelloController {

    @GetMapping("/hello")
    public String sayHello() {
        String message = "wangxg";
        log.error("error: {}", message);
        log.info("info:{}", message);
        return "hello springboot...";
    }
}
